/**
 * @file entry
 * @author leijun(724099654@qq.com)
 */

import Vue from 'vue';
import Meta from 'vue-meta';
import VueTimeago from 'vue-timeago'

import {createRouter} from '@/.lavas/router';
import {createStore} from '@/.lavas/store';
import AppComponent from './App.vue';
import "@/assets/css/github-markdown.css"
import Vuetify from 'vuetify';

Vue.use(Meta);

Vue.use(Vuetify);

Vue.config.productionTip = false;

Vue.use(VueTimeago, {
    name: 'timeago',
    locale: 'zh-CN',
    locales: {
        'zh-CN': require('vue-timeago/locales/zh-CN.json')
    }
})
export function createApp() {
    let router = createRouter();
    let store = createStore();
    let App = Vue.extend({
        router,
        store,
        ...AppComponent
    });
    return {App, router, store};
}

if (module.hot) {
    module.hot.accept();
}
